import {http} from "@/utils/index.jsx";

export function loginAPI(data){
    return http({
        url:'/login/',
        method:'POST',
        data:data
    })
}

export function getAllUserAPI(current,pageSize){
    return http({
        url:'/sys-user/all',
        method:'GET',
        params:{
            current:current,
            pageSize:pageSize
        }
    })
}

export function getAllMaterial(current,pageSize){
    return http({
        url:'',
        method:"GET",
        params:{
            current:current,
            pageSize:pageSize
        }
    })
}